package com.vogue.api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.vogue.api.data.CateringUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 用户记录表
 * @author George<qiaozhi_china@163.com>
 */
@Mapper
public interface CateringUserMapper extends BaseMapper<CateringUser> {

    CateringUser findImUserByUserAccount(@Param("account") String account);
    CateringUser findImUserByUserOpenId(@Param("openId") String openId);
    CateringUser loadUserByMobileAndPassword(@Param("mobile") String phone, @Param("password") String password);
    CateringUser loadUserByMobileAndSmsCode(@Param("mobile") String mobile);

}
